﻿#ifndef REGISTERWINDOW_H
#define REGISTERWINDOW_H
#include <QMainWindow>

namespace Ui {
	class registerWindow;
}

class RegisterWindow : public QMainWindow
{
	Q_OBJECT

public:
	explicit RegisterWindow(QWidget* parent = 0);
	bool init();
	bool readRegisterInfo();
	void saveRegisterInfo();
	// 获取硬件信息
	QString getHardwareInfo();
	QString cpuType();
	QString macNumber();

signals:
	void showMain();

public slots:
	void registerHardwareInfo();

private:
	std::shared_ptr<Ui::registerWindow> ui;
	QString key = "foijaoifjewfjoaifmeamfiajejfa";
	QString fileHardwareInfo;
	QString lastLogin;
	QString expiryDate;
};

#endif